//
//  TKIMSMSChatView.h
//  test2
//
//  Created by TryHone on 16/7/18.
//  Copyright © 2016年 TryHone. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TKIMDelegate.h"
#import "TKIM.h"
#import "UIResponder+Router.h"
#import "TKIMChatViewCell.h"
#import "TKIMToolBar.h"
#import "TKIMTableView.h"
#import "TKChatMessageModle.h"
typedef void(^actionNav)(NSInteger state);

@interface TKIMSMSChatView : UIView




@property(nonatomic,weak) id<TKIMMessageDelegate>delegate;
-(instancetype)initWithFrame:(CGRect)frame type:(TKIMToolBarType)toolBarType;
@property(nonatomic,strong) TKIMTableView *tableView;
@property(nonatomic,assign) BOOL isSeletedState;//是否需要展示选择状态
/**
 *  @Author lpm, 15-07-28 18:07:41
 *
 *  @brief  接收服务器消息
 *
 *  @param msg
 */
-(void)receiveMsg:(id)msg;


/**
 *  @Author lpm, 15-07-28 18:07:41
 *
 *  @brief  更新消息
 *
 *  @param msg
 */
-(void)updateMsg:(TKIMMessage *)msg;


/**
 *  @Author lpm, 15-07-29 10:07:04
 *
 *  @brief  发送系统消息
 *
 *  @param message
 */
-(void)sendSysMsg:(NSString *)message;

/**
 *  @Author lpm, 15-07-29 16:07:38
 *
 *  @brief  收起键盘
 */
-(void)resignInputFirstResponder;


/**
 *  @Author lpm, 15-07-28 18:07:41
 *
 *  @brief  刷新列表
 *
 *  @param msg
 */
-(void)reloadList:(NSMutableArray *)dataList isNeedTime:(BOOL)isneedtime;

@property (nonatomic,strong)NSArray * menusArray;



//新加的方法
-(void)dochoice:(actionNav)action;
-(void)dochoiceAll:(actionNav)action;

@end
